package com.develope.menu.service;

import java.util.List;

import org.apache.http.NameValuePair;
import org.ksoap2.serialization.PropertyInfo;

public abstract class HttpHandler {
	
	public String operation;	
	public PropertyInfo[] params;
	public PropertyInfo param;
	
	
	public  HttpHandler(String operationName, PropertyInfo[] parameters) {
		this.operation = operationName;				
		this.params = parameters;
		 
	}
	public  HttpHandler(String operationName, PropertyInfo parameters) {
		this.operation = operationName;	
		this.param = parameters;
		
	}	
	public abstract void onResponse(int errorCode, String result);

	public void execute() {
		
			new AsyncSoapTask(this).execute();
		
	}

}